//
//  ComonFile.h
//  TY-C
//
//  Created by xyyl on 2024/2/29.
//

#ifndef ComonFile_h
#define ComonFile_h

#define kStatusBarHeight [[UIApplication sharedApplication] statusBarFrame].size.height
#define kNavBarHeight 44.0
#define kTopHeight (kStatusBarHeight + kNavBarHeight)
#define RGBColor(r,g,b) [UIColor colorWithRed:(r)/255.0 green:(g)/255.0 blue:(b)/255.0 alpha:1.0]
#define RGBAColor(r,g,b,a) [UIColor colorWithRed:(r)/255.0 green:(g)/255.0 blue:(b)/255.0 alpha:(a)]
#define ZYQWIDTH  [UIScreen mainScreen].bounds.size.width
#define ZYQHEIGHT [UIScreen mainScreen].bounds.size.height
#define ZYQFONT(F) [UIFont systemFontOfSize:(F)]
//判断是否为 iPhoneXS  Max，iPhoneXS，iPhoneXR，iPhoneX
#define KIsiPhoneX ((int)((ZYQHEIGHT/ZYQWIDTH)*100) == 216)?YES:NO
#define iPhone6                                                                \
([UIScreen instancesRespondToSelector:@selector(currentMode)]                \
? CGSizeEqualToSize(CGSizeMake(750, 1334),                              \
[[UIScreen mainScreen] currentMode].size)           \
: NO)
#define iPhoneX ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(1125, 2436), [[UIScreen mainScreen] currentMode].size) : NO)
#define iPhone5 ([[UIScreen mainScreen] bounds].size.height == 568)

#define BACKCOLOR RGBAColor(247, 247, 247, 1.0)
//#主题颜色
#define BASECOLOR RGBAColor(143, 207, 225, 1.0)

///一些测试用到的 debug 。  上架 发包测试时置为0 。
#define  PACDebug 1

///首页宽高比列
#define SSSw 0.25
//160.0/640.0;

#define  SSSh 0.2
//80.0/400.0;

#define IPADSCALE 2

#define LEFTWWW 65*IPADSCALE

#import <Masonry/Masonry.h>

#import "NSString+Common.h"
#import "YBPopupMenu.h"
#import "TY-C-Bridging-Header.h"
#import "Pac_TipsSureBtn.h"
#import <SVProgressHUD.h>

#define  ChuFangRefresh @"chufangRefresh"
#define BlueToothStateChange @"blueToothStateChange" ///蓝牙通知发送 状态改变
#define BlueToothMsgReturnWithStr @"blueToothMsgReturnWithStr" ///返回值通知
///
#endif /* ComonFile_h */
